package com.bupt.controller.system;

import com.bupt.annotation.AccessLimit;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.annotations.ApiIgnore;

import java.util.Map;

/**
 * swagger页面
 */
@ApiIgnore
@Slf4j
@Controller
@RequestMapping("/")
public class ApiSwaggerController {

    @AccessLimit(interfaceName = "swagger的页面", isLogIn = false)
   @GetMapping("/")
    public String welcomePage(Map<String, Object> map) {
        //return "redirect:swagger-ui.html";
        return "redirect:swagger-ui.html";
    }
}
